// next.config.js
const nib = require('nib')
const withStylus = require('@zeit/next-stylus')
module.exports = withStylus({
    cssModules: true,
    cssLoaderOptions: {
        importLoaders: 1,
    },
  stylusLoaderOptions: {
    use: [nib()]
  },
  css:[
    {
      src:'assets/style/common.styl',
      lang:'stylus'
    }
  ],
  webpack: (config, {}) => {
    config.module.rules.push({
      test: /\.(jpg|png)/,
      use: ['url-loader']
    })
 
    return config
  }
})
